package cn.jiyun;

import cn.jiyun.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Fay
 * @date 2022/6/27&23:24
 */
@FeignClient(value="sentinel-provider")
public interface UserFeign {

    @RequestMapping("/getUserById")
    public User getUserById(@RequestParam Integer id);
}
